包含 物料 商品 包含 进货 出货 用户 等 大致方向见截图 用的 springboot mybatis swagger
/** * 查询所有配送表 */ @GetMapping("/selectAll")@ApiOperation(value = "查询配送表", notes = "接口描述 : 添加一条权限")@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "展示第几页", dataType = "int", required = false), @ApiImplicitParam(name = "pageSize", value = "每页展示几条", dataType = "int", required = false),}) public JsonResult showPickUp(@RequestParam(defaultValue = "1") int pageNum,@RequestParam(defaultValue = "10") int pageSize,@RequestBody(required = false)PickUp pickUp) { List<PickUp> pickUps = pickUpService.showAll(pickUp); System.out.println(pickUps); ResultCode.SUCCESS.setMessage("查询取货表'" "'成功"); return ResultTool.success(pickUps); } /** * 查询所有订单 */ @GetMapping("/selectOne")@ApiOperation(value = "查询配送表", notes = "接口描述 : 添加一条权限") public JsonResult SelectOne(Integer id) { PickUp pickUp = pickUpService.selectOne(id); if(pickUp == null) { ResultCode.COMMON_FAIL.setMessage("查询指定取货表信息失败"); return ResultTool.fail(); } ResultCode.SUCCESS.setMessage("查询指定取货表信息成功"); return ResultTool.success(pickUp);}
评论